[powerpc] xencomm: print function names so we can tell which one failed
authorJimi Xenidis <jimix@watson.ibm.com>
Thu, 13 Jul 2006 15:25:36 +0000 (11:25 -0400)
committerJimi Xenidis <jimix@watson.ibm.com>
Thu, 13 Jul 2006 15:25:36 +0000 (11:25 -0400)
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
xen/arch/powerpc/usercopy.c

index 667c90eaed65559328db9b7f0c0e5e6d3e0b9555..542e70d8b8b677706faae699cc3f12d9191b7189 100644 (file)
@@ -86,7 +86,8 @@ xencomm_copy_from_guest(void *to, const void *from, unsigned int n,
     /* first we need to access the descriptor */
     desc = (struct xencomm_desc *)paddr_to_maddr((unsigned long)from);
     if (desc->magic != XENCOMM_MAGIC) {
-        printk("xencomm error: %p magic was 0x%x\n", desc, desc->magic);
+        printk("%s: error: %p magic was 0x%x\n",
+               __func__, desc, desc->magic);
         return n;
     }
 
@@ -153,7 +154,7 @@ xencomm_copy_to_guest(void *to, const void *from, unsigned int n,
     /* first we need to access the descriptor */
     desc = (struct xencomm_desc *)paddr_to_maddr((unsigned long)to);
     if (desc->magic != XENCOMM_MAGIC) {
-        printk("xencomm error: %p magic was 0x%x\n", desc, desc->magic);
+        printk("%s error: %p magic was 0x%x\n", __func__, desc, desc->magic);
         return n;
     }
 
@@ -206,7 +207,7 @@ void xencomm_add_offset(void *handle, unsigned int bytes)
     /* first we need to access the descriptor */
     desc = (struct xencomm_desc *)paddr_to_maddr((unsigned long)handle);
     if (desc->magic != XENCOMM_MAGIC) {
-        printk("xencomm error: %p magic was 0x%x\n", desc, desc->magic);
+        printk("%s error: %p magic was 0x%x\n", __func__, desc, desc->magic);
         return;
     }